<extend name="Public/base"/>

<block name="body">
  <div class="main-title">
    <h2>{$meta_title}</h2>
  </div>

  <div class="cf">
    <a class="btn" href="{:U('addZone')}">新 增</a>
    <a class="btn" href="{:U('zone')}">刷 新 <span style="font-size:12px;font-weight:normal">(清空搜索条件)</span></a>
    <!-- 高级搜索 -->
    <form id="J_search_form" action="{:U('zone')}" method="GET">
    <div class="search-form fr cf">
      <div class="sleft">
        <input type="text" name="name" class="search-input" value="{:I('name')}" placeholder="请输入区域名称">
        <a class="sch-btn" href="javascript:;" id="J_search" url="__SELF__"><i class="btn-search"></i></a>
      </div>
    </div>
    </form>
  </div>

  <div class="data-table table-striped">
    <form class="ids">
      <table>
        <thead>
          <tr>
            <th>ID</th>
            <th>区域</th>
            <th>状态</th>
            <th>排序</th>
            <th>操作</th>
          </tr>
        </thead>
        <tbody>
        <notempty name="lists">
          <volist name="lists" id="vo">
            <tr>
              <td>{$vo.id}</td>
              <td>{$vo.name}</td>
              <td>{$vo.status_text|default='正常'}</td>
              <td>{$vo.sort}</td>
              <td>
                <a title="编辑" href="{:U('addZone?id='.$vo['id'])}">[编辑]</a>
                <php>if(!in_array($vo['id'],C('DEFAULT_AREA_ZONE'))){</php>
                  <a class="confirm ajax-get" title="删除" href="{:U('delZone?id='.$vo['id'])}">[删除]</a>
                <php>}else{</php>
                  <span class="disabled">[删除]</span>
                <php>}</php>
              </td>
            </tr>
          </volist>
        <else/>
          <td colspan="10" class="text-center"> aOh! 暂时还没有内容! </td>
        </notempty>
        </tbody>
      </table>
    </form>
    <!-- 分页 -->
    <div class="page">
      {$_page}
    </div>
  </div>
</block>

<block name="script">
  <script type="text/javascript">
    $(function() {
      //导航高亮
      highlight_subnav("{:U('zone')}");
    });
  </script>
</block>